import button from './src/simple/button/button.vue'
import dialog from './src/simple/dialog/index.vue'
import input from './src/simple/input/index.vue'
import Switch from './src/simple/switch/index.vue'
import radio from './src/simple/radio/index.vue'
import radioGroup from './src/simple/radio-group/index.vue'
import checkbox from './src/simple/checkbox/index.vue'
import checkboxGroup from './src/simple/checkbox-group/index.vue'
import form from './src/simple/form/index.vue'
import formItem from './src/simple/form/form-item.vue'
import background from './src/background/index.vue'
import drawer from './src/simple/drawer/index.vue'
import card from './src/simple/card/card.vue'
import menu from './/src/simple/menu/index.vue'
import menuItem from './/src/simple/menu/menu-item.vue'
import submenu from './/src/simple/menu/submenu.vue'
// data
import table from './/src/simple/table/table.vue'
import describeTable from './/src/simple/describe-table/describe-table.vue'
import pager from './/src/simple/paging/pager.vue'

import { message } from './src/simple/message/index.js'

const install = Vue => {
	Vue.component('hcj-button',button)
	Vue.component('hcj-dialog',dialog)
	Vue.component('hcj-input',input)
	Vue.component('hcj-switch',Switch)
	Vue.component('hcj-radio',radio)
	Vue.component('hcj-radio-group',radioGroup)
	Vue.component('hcj-checkbox',checkbox)
	Vue.component('hcj-checkbox-group',checkboxGroup)
	Vue.component('hcj-form',form)
	Vue.component('hcj-form-item',formItem)
	Vue.component('hcj-background',background)
	Vue.component('hcj-drawer',drawer)
	Vue.component('hcj-menu',menu)
	Vue.component('hcj-menu-item',menuItem)
	Vue.component('hcj-submenu',submenu)
	Vue.component('hcj-table',table)
	Vue.component('hcj-destable',describeTable)
	Vue.component('hcj-card',card)
	Vue.component('hcj-pager',pager)
	Vue.prototype.$Mess = message
}

export default {
	install,
}